home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 July / 07_02.iso / software / xq-xsetup / files / setup.exe / {app} / plugins / XQ CD AutoStart Options.xpl < prev    next >
Text File  |  2000-12-09  |  1KB  |  44 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="System\File System\CD Autostart"
  5. "NAME"="Autostart Audio CD"
  6. "VERSION"="1.35"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Play audio CD-ROMs automatically"
  9. "DESCRIPTION 1"="If you normally insert a CD in your CD-ROM-drive, starts playing the CD using the CD Player."
  10. "DESCRIPTION 2"="If you do not like this behavior, you can change it here."
  11. "DESCRIPTION 3"="Note that this option requires "Auto-Insert Notification" for your CD-ROM-drive enabled."
  12. "AUTHOR"="Xteq Systems"
  13. "CONTACTURL"="http://www.xteq.com"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 2"="Thanks to totalXS for his help!"
  16.  
  17.  
  18. Sub Plugin_Initialize 
  19.  s=RegReadValue("HKLM\Software\Classes\AudioCD\Shell\@")
  20.  if s="play" then SetUIElement 1,true
  21. End Sub
  22.  
  23. Sub Plugin_CheckData(ElementIndex)
  24. End Sub
  25.  
  26. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  27.  b=GetUIElement(1)
  28.  if b=true then
  29.   Call RegWriteValue("HKLM\Software\Classes\AudioCD\Shell\@","play",1)
  30.  else
  31.   Call RegWriteValue("HKLM\Software\Classes\AudioCD\Shell\@","",1)
  32.  end if
  33.  
  34.  'Restart
  35.  Call IndicateSettingChange()
  36. End Sub
  37.  
  38.  
  39. Sub Plugin_Terminate 
  40. End Sub
  41.  
  42.  
  43.  
  44.